//
//  InterLink.swift
//  XcodePluginDemo
//
//  Created by liy on 2024/12/21.
//

import UIKit

//给无值变量添加构造函数并格式化
//还可以用于函数对其参数
class InterLink {
  let success: () -> Void
  let age: Int
  let sex: Int
  let address: String

  init(success: @escaping () -> Void,
       age: Int,
       sex: Int,
       address: String) {
    self.success = success
    self.age = age
    self.sex = sex
    self.address = address
  }

  func test(name: String,
            age: Int,
            address: String,
            favorite: [String],
            grade: Int) {

  }
}
extension InterLink {
	//扩展中无法使用
	private func setupAliCloudPush(application: UIApplication,options: [UIApplication.LaunchOptionsKey: Any]? = nil) {
		
	}
	private func dowork(naem: String,age: Int) {
		
	}
}
